package org.example.core;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @author lzh
 * @date 2020/8/26 - 14:54
 */
//maven聚合工程 引入其他工程里的service
// 需要把scanBasePackages配置为子工程的包名,因为spring默认只会扫描(springboot主工程)App.java所在的工程里的service
@SpringBootApplication(scanBasePackages = {"org.example.biz",
        "org.example.pojo","org.example.toolkit",
        "org.example.core","org.example.framework"})

public class App extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
    }
}
